<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>oryx</title>
	<script src="prototype-1.5.1.js"></script>
	<script src="oryx.debug.js"></script>
</head>
<body>
	<script>
		var ACTIVITI = ACTIVITI || {};

		ACTIVITI.CONFIG = {
			'contextRoot' : '',
		};


		var data = '{"name":"请假流程","revision":1,"description":"请假流程演示","modelId":"2501","model":{"bounds":{"lowerRight":{"x":1485.0,"y":700.0},"upperLeft":{"x":0.0,"y":0.0}},"resourceId":"canvas","stencil":{"id":"BPMNDiagram"},"stencilset":{"namespace":"http://b3mn.org/stencilset/bpmn2.0#","url":"../editor/stencilsets/bpmn2.0/bpmn2.0.json"},"properties":{"process_id":"leave","name":"请假流程","documentation":"请假流程演示","process_namespace":"http://www.kafeitu.me/demo/activiti/leave","messages":[],"executionlisteners":{"executionListeners":[]},"eventlisteners":{"eventListeners":[]},"signaldefinitions":[],"messagedefinitions":[]},"childShapes":[{"bounds":{"lowerRight":{"x":45.0,"y":125.0},"upperLeft":{"x":10.0,"y":90.0}},"resourceId":"startevent1","childShapes":[],"stencil":{"id":"StartNoneEvent"},"properties":{"overrideid":"startevent1","name":"Start","initiator":"applyUserId"},"outgoing":[{"resourceId":"flow2"}]},{"bounds":{"lowerRight":{"x":195.0,"y":135.0},"upperLeft":{"x":90.0,"y":80.0}},"resourceId":"deptLeaderAudit","childShapes":[],"stencil":{"id":"UserTask"},"properties":{"overrideid":"deptLeaderAudit","name":"部门领导审批","usertaskassignment":{"assignment":{"candidateGroups":[{"value":"deptLeader"}]}},"asynchronousdefinition":false,"exclusivedefinition":true,"tasklisteners":{"taskListeners":[]},"executionlisteners":{"executionListeners":[]}},"outgoing":[{"resourceId":"flow3"}]},{"bounds":{"lowerRight":{"x":290.0,"y":127.0},"upperLeft":{"x":250.0,"y":87.0}},"resourceId":"exclusivegateway5","childShapes":[],"stencil":{"id":"ExclusiveGateway"},"properties":{"overrideid":"exclusivegateway5","name":"Exclusive Gateway"},"outgoing":[{"resourceId":"flow4"},{"resourceId":"flow5"}]},{"bounds":{"lowerRight":{"x":323.0,"y":245.0},"upperLeft":{"x":218.0,"y":190.0}},"resourceId":"modifyApply","childShapes":[],"stencil":{"id":"UserTask"},"properties":{"overrideid":"modifyApply","name":"调整申请","usertaskassignment":{"assignment":{"assignee":"${applyUserId}"}},"asynchronousdefinition":false,"exclusivedefinition":true,"tasklisteners":{"taskListeners":[{"event":"complete","delegateExpression":"${afterModifyApplyContentProcessor}"}]},"executionlisteners":{"executionListeners":[]}},"outgoing":[{"resourceId":"flow11"}]},{"bounds":{"lowerRight":{"x":463.0,"y":135.0},"upperLeft":{"x":358.0,"y":80.0}},"resourceId":"hrAudit","childShapes":[],"stencil":{"id":"UserTask"},"properties":{"overrideid":"hrAudit","name":"人事审批","usertaskassignment":{"assignment":{"candidateGroups":[{"value":"hr"}]}},"asynchronousdefinition":false,"exclusivedefinition":true,"tasklisteners":{"taskListeners":[]},"executionlisteners":{"executionListeners":[]}},"outgoing":[{"resourceId":"flow6"}]},{"bounds":{"lowerRight":{"x":535.0,"y":127.0},"upperLeft":{"x":495.0,"y":87.0}},"resourceId":"exclusivegateway6","childShapes":[],"stencil":{"id":"ExclusiveGateway"},"properties":{"overrideid":"exclusivegateway6","name":"Exclusive Gateway"},"outgoing":[{"resourceId":"flow7"},{"resourceId":"flow9"}]},{"bounds":{"lowerRight":{"x":695.0,"y":135.0},"upperLeft":{"x":590.0,"y":80.0}},"resourceId":"reportBack","childShapes":[],"stencil":{"id":"UserTask"},"properties":{"overrideid":"reportBack","name":"销假","usertaskassignment":{"assignment":{"assignee":"${applyUserId}"}},"asynchronousdefinition":false,"exclusivedefinition":true,"tasklisteners":{"taskListeners":[{"event":"complete","delegateExpression":"${reportBackEndProcessor}"}]},"executionlisteners":{"executionListeners":[]}},"outgoing":[{"resourceId":"flow8"}]},{"bounds":{"lowerRight":{"x":660.0,"y":318.0},"upperLeft":{"x":625.0,"y":283.0}},"resourceId":"endevent1","childShapes":[],"stencil":{"id":"EndNoneEvent"},"properties":{"overrideid":"endevent1","name":"End"},"outgoing":[]},{"bounds":{"lowerRight":{"x":290.0,"y":320.0},"upperLeft":{"x":250.0,"y":280.0}},"resourceId":"exclusivegateway7","childShapes":[],"stencil":{"id":"ExclusiveGateway"},"properties":{"overrideid":"exclusivegateway7","name":"Exclusive Gateway"},"outgoing":[{"resourceId":"flow10"},{"resourceId":"flow12"}]},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow2","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":17.5,"y":17.5},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"deptLeaderAudit"}],"target":{"resourceId":"deptLeaderAudit"},"properties":{"overrideid":"flow2"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow3","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":52.5,"y":27.5},{"x":20.0,"y":20.0}],"outgoing":[{"resourceId":"exclusivegateway5"}],"target":{"resourceId":"exclusivegateway5"},"properties":{"overrideid":"flow3"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow4","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"modifyApply"}],"target":{"resourceId":"modifyApply"},"properties":{"overrideid":"flow4","name":"不同意","conditionsequenceflow":"${!deptLeaderPass}"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow5","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"hrAudit"}],"target":{"resourceId":"hrAudit"},"properties":{"overrideid":"flow5","name":"同意","conditionsequenceflow":"${deptLeaderPass}"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow6","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":52.5,"y":27.5},{"x":20.0,"y":20.0}],"outgoing":[{"resourceId":"exclusivegateway6"}],"target":{"resourceId":"exclusivegateway6"},"properties":{"overrideid":"flow6"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow7","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"reportBack"}],"target":{"resourceId":"reportBack"},"properties":{"overrideid":"flow7","name":"同意","conditionsequenceflow":"${hrPass}"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow8","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":52.5,"y":27.5},{"x":17.5,"y":17.5}],"outgoing":[{"resourceId":"endevent1"}],"target":{"resourceId":"endevent1"},"properties":{"overrideid":"flow8"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow9","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":514.0,"y":217.0},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"modifyApply"}],"target":{"resourceId":"modifyApply"},"properties":{"overrideid":"flow9","name":"不同意","conditionsequenceflow":"${!hrPass}"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow10","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":142.0,"y":299.0},{"x":52.5,"y":27.5}],"outgoing":[{"resourceId":"deptLeaderAudit"}],"target":{"resourceId":"deptLeaderAudit"},"properties":{"overrideid":"flow10","name":"重新申请","conditionsequenceflow":"${reApply}"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow11","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":52.5,"y":27.5},{"x":20.0,"y":20.0}],"outgoing":[{"resourceId":"exclusivegateway7"}],"target":{"resourceId":"exclusivegateway7"},"properties":{"overrideid":"flow11"}},{"bounds":{"lowerRight":{"x":172.0,"y":212.0},"upperLeft":{"x":128.0,"y":212.0}},"resourceId":"flow12","childShapes":[],"stencil":{"id":"SequenceFlow"},"dockers":[{"x":20.0,"y":20.0},{"x":17.5,"y":17.5}],"outgoing":[{"resourceId":"endevent1"}],"target":{"resourceId":"endevent1"},"properties":{"overrideid":"flow12","name":"结束流程","conditionsequenceflow":"${!reApply}"}}]}}';

		var bpmn = new ORYX.Editor( JSON.parse(data) );

		//console.log( ORYX.Editor );
	</script>
</body>
</html>